https://bugzilla.gnome.org/show_bug.cgi?id=723684
}
this._proxy = proxy;
- this._proxy.connect('g-properties-changed', Lang.bind(this, this._onGeocluePropsChanged));
+ this._propertiesChangedId = this._proxy.connect('g-properties-changed',
+ Lang.bind(this, this._onGeocluePropsChanged));
this._updateMenuVisibility();
this._syncIndicator();
},
_onGeoclueVanished: function() {
+ if (this._propertiesChangedId) {
+ this._proxy.disconnect(this._propertiesChangedId);
+ this._propertiesChangedId = 0;
+ }
this._proxy = null;
this._syncIndicator();